﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WMSmanagement.IBaseService.OuStorage.Dtos
{
    public class OuStorageDtos
    {
        //出库
        /// <summary>
        /// 出库单号
        /// </summary>
        [StringLength(40)]
        public string? StockOutCode { get; set; }
        /// <summary>
        /// 仓库
        /// </summary>
        [StringLength(30)]
        public string? StockInWarehouse { get; set; }
        /// <summary>
        /// 库位
        /// </summary>
        [StringLength(30)]
        public string? StockInLocation { get; set; }
        /// <summary>
        /// 出库类型
        /// </summary>
        [StringLength(20)]
        public string? StockOutType { get; set; }
        /// <summary>
        /// 关联订单号
        /// </summary>
        [StringLength(40)]
        public string? PurchaseOrderCode { get; set; }
        /// <summary>
        /// 客户编号
        /// </summary>
        [StringLength(50)]
        public string? CustomerCode { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        [StringLength(10)]
        public string? CustomerName { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        [StringLength(10)]
        public string? CustomerContact { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        [StringLength(10)]
        public string? Maker { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        [StringLength(20)]
        public string? CustomerPhone { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime? MakeTime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(100)]
        public string? Remark { get; set; }

        //产品
        /// <summary>
        /// 产品编码
        /// </summary>
        [StringLength(40)]
        public string ProductCode { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        [StringLength(40)]
        public string ProductName { get; set; }

        /// <summary>
        /// 产品规格
        /// </summary>
        [StringLength(30)]
        public string ProductSpecification { get; set; }

        /// <summary>
        /// 类别
        /// </summary>
        [StringLength(10)]
        public string Category { get; set; }

        /// <summary>
        /// 存储单位
        /// </summary>
        [StringLength(10)]
        public string StorageUnit { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        [StringLength(10)]
        public string Unit { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public double UnitPrice { get; set; }

        //出库明细
        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }


    }
    public class OuStoragePageDtos
    {
        public List<OuStorageDtos> Data { get; set; }
        /// <summary>
        /// 总条数
        /// </summary>
        public int TotalCount { get; set; }
    }
}
